{/* LAYOUT模板 */}
	<layout name="layout"/>
{/* LAYOUT模板 */}

{/* import Js,Css */}
	<js href="__PUBLIC__/js/admin/listTable.js"/>
	<js href="__PUBLIC__/js/admin/js.util.js"/>
	<css href="__PUBLIC__/css/admin/common.css"/>
	<css href="__PUBLIC__/css/qs-table-1.0.css"/>
	<js href="__PUBLIC__/js/admin/js.selectzone.js"/>	
	<css href="__PUBLIC__/css/jquery-ui.css" />
	<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
	<js href="__PUBLIC__/js/core/plugins.js"/>
{/* import js,css */}

<!-- [position] -->
	<include file="Template:position"/>
<!-- [position] -->
<!-- [position] -->
	<include file="Core:QTip"/>
<!-- [position] -->

<div class="rightbanner">
	<table id="admin-list-table" class="qs-table" border="1" width="100%">
		<thead>
			<tr>
				<th class="first">{$lang.sort_order}</th>
				<th>{$lang.user_name}</th>
				<th>{$lang.email}</th>
				<th width="100px" align="center"><!--{$lang.createdtime}-->加入时间</th>
				<th align="center">{$lang.last_time}</th>
				<th align="center">{$lang.last_ip}</th>
				<th class="last" width="150px" align="center">{$lang.action}</th>
			</tr>		   	
		</thead>
		<tbody>
			<volist name="adminUserList" id="adminUser">
				<tr id="tr_{$adminUser.user_id}" class="data">
					<td class="first">{$adminUser.user_id}</td>
					<td>{$adminUser.user_name}</td>
					<td>{$adminUser.email}</td>
					<td align="center">{$adminUser.createdtime|date='Y-m-d  h:m:s',###}</td>
					<td align="center">{$adminUser.last_time|date='Y-m-d  h:m:s',###}</td>
					<td align="center">{$adminUser.last_ip}</td>
					<td align="center">
						<a href="javascript:deleteadminUser({$adminUser.id});" >{$lang.delete}</a>&nbsp;&nbsp;
						<a href="javascript:alert('暂无此功能!');">{$lang.modify}</a>&nbsp;&nbsp;
						<a href="__URL__/allot_user_access?id={$adminUser.user_id}">{$lang.allot_user_access}</a>&nbsp;&nbsp;
					</td>
				</tr>			
			</volist>	
		</tbody>
		<tr class="tfoot">
			<td class="first">&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td class="last">&nbsp;</td>
		</tr>		
	</table>		
	<include file="Template:paginator"/>
</div>
<div id="loading"class="hide"><!--Qloading:不能删除--></div>
<script>
	/* 隔行变色 */
	$(document).ready(function(){
		$('.qs-table').tableUI();
		listTable.init('__URL__/ajax_article');
	});
	/* 删除管理人员 */
	function deleteadminUser(id){
		var opt = {
			url:'__URL__/deleteadminUser',
			dataType:'json',
			type:'post',
			data:{id:id},
			beforeSend:function(){
				$('#loading').QLoading({'text':'处理中','status':'open','model':false});
			},
			success:function(msg){
				if(msg.data == '1'){
					var tr = $("#tr_" + id);
					tr.remove();
					$('#loading').QLoading({'text':'成功','status':'close','time':1,'img':'happy','model':false});
				}
				else{
					$('#loading').QLoading({'text':'失败','status':'close','time':1,'img':'sad','model':false});
				}
			}
		};		
		$.ajax(opt);
	}	
</script>



